<?php
namespace app\validate;

use think\Validate;

class SystemInfo extends Validate
{
    protected $rule = [
        'id'    =>  'require|number',
        'value' =>  'require|max:25'
    ];

    protected $message  =   [
        'id.require'    => '传入参数缺少必要参数！',
        'id.number'     => '传入参数类型错误！',
        'value.require' => '传入参数缺少必要参数！',
        'value.max'     => '传入参数字符溢出！'
    ];

}